@import '~components/constants.scss';

.electron {
  .channels_view {
    padding-top: 24px;
  }
}

.channels_view {
  background: $grey_background;
  width: 220px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;

  .channel_small_text {
    font-size: 12px;
    margin: 0 16px;
    color: $grey_dark;
    font-weight: 500;
  }

  .apps_channels {
    padding-top: 8px;
  }

  .current_group {
    line-height: 24px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: $grey_dark;
    font-size: 14px;
    background: $grey_light;
    border-radius: var(--default-border-radius-large);
    display: flex;
    padding: 8px;
    margin: 0px 14px;
    box-sizing: border-box;
    height: 40px;

    span {
      flex: 1;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .group_image.invite {
      margin-right: 4px;
      width: auto;
      background: $green;
      border-radius: var(--default-border-radius);
      color: $white;
      padding-right: 4px;
      white-space: nowrap;
      display: flex;
      font-weight: 600;
      .group_switch {
        margin-right: 4px;
      }
    }

    .group_switch {
      margin-right: 8px;
      height: 24px;
      .current_company_logo.has_image {
        font-size: 0px !important;
      }
      .current_company_logo {
        font-size: 16px;
        line-height: 24px;
        color: $secondary;
        width: 24px;
        height: 24px;
        border-radius: var(--default-border-radius);
      }
    }
  }

  .scrollbar-container {
    flex: 1;
  }
}
.loading_render {
  .channel_small_text {
    display: none;
  }
  .current_group {
    display: none;
  }
}

/* channel add */
.channelUserAdd .flexDiv {
  display: flex;
  .flex1 {
    flex: 1;
    margin-left: 8px;
  }
}
